cmake_minimum_required (VERSION 3.6)

project(memtrack)

set(DIR_LIB_SRCS "")

file(GLOB_RECURSE CURRENT_SOURCES "*.c")

list(APPEND DIR_LIB_SRCS ${CURRENT_SOURCES})
add_library(${PROJECT_NAME} ${DIR_LIB_SRCS})

target_include_directories(${PROJECT_NAME} PUBLIC "./")

add_dependencies(${PROJECT_NAME} kernal_cmsis framework_log cmsis_mem)
target_link_libraries(${PROJECT_NAME} kernal_cmsis framework_log cmsis_mem)
target_compile_options(${PROJECT_NAME} PRIVATE -g)